package com.concise.appapi.controller;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.initialize.pub.util.MD5;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @program: star-blockchain
 * @description: MD5控制器  --  便于调试
 * @author: Mr.Jane
 * @create: 2019-09-23 18:23
 **/
@Api(tags = "MD5测试")
@CrossOrigin
@RestController
@RequestMapping(value = "/md5")
public class MD5Controller {


    @ApiOperation(value = "获取一个测试的Md5")
    @PostMapping(value = "/test-md5")
    public String getMd5(@RequestBody String val) throws JsonProcessingException {


        return MD5.md5(val);
    }
}
